package com.john.design.七大原则.迪米特原则;

import java.util.ArrayList;

/**
 * @Author: JohnCoding
 * @Description:
 * @date: 2020/8/9 22:07
 */
public class TeamLeader {
    void checkNumbserOfCourse(){
        ArrayList<Course> courses = new ArrayList<Course>();
        for (int i = 0; i < 20; i++) {
            courses.add(new Course());
        }
        System.out.println("课程总是是："+courses.size());
    }
}
